-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor: Use hooks instead of HoCs in 'PostSticky' components #54949
Conversation
Size Change: -11 B (0%) Total Size: 1.62 MB
ℹ️ View Unchanged
|
Flaky tests detected in ed67da1. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6361202954
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks George!
What?
This is similar to #53389.
PR refactors
PostStickyCheck
andPostSticky
components to useuseDispatch
anduseSelect
hooks instead of the HoCs.Why?
A micro-optimization makes the rendered component tree smaller.
Testing Instructions
Confirm
Testing Instructions for Keyboard
The same "Stick to the top of the blog" action works as before.
Screenshots or screencast
Before
After